package com.changgou.goods.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;


import com.haha.goods.entity.Brand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Yang
 * @date 2020/11/5
 */
public interface BrandDao extends BaseMapper<Brand> {

    List<Brand> selectListByPage(@Param(Constants.WRAPPER)QueryWrapper<Brand> queryWrapper, @Param("offset") int offset, @Param("size") int size);

    List<Brand> findByCategory(Integer categoryId);
}
